<?php
echo $this->Html->css('screen');
echo $this->Form->create("User",array("action"=>'/login',"method"=>"POST","id"=>"userForm","name"=>"forgetpasswordform", "onsubmit"=>"return jQuery(this).valid();"));
?>
 <?php  //echo $session->flash();

 if(isset($user_id) && $user_id!=''){
?>
 <h1> <?php __('ALREADY_LOGGED_IN')?></h1>
 <ul><li  id="userName"><?php echo __('GO_TO');?>  <?php echo $this->Html->link(__('MY_DASHBOARD',true), array('controller'=>'users', 'action'=>'mydashboard'), array( 'label'=>false)); ?></li>
	<li  id="userPassword">Or <?php echo $this->Html->link(__('LOGOUT',true), array('controller'=>'users', 'action'=>'logout'), array( 'label'=>false)); ?>     <?php __('FROM_ACCOUNT')?></li>
 </ul>
<?php
	}
 else{?>
	<h1><?php echo __('LOGIN');?></h1>
<ul>
		<li  id="userName">
	       <?php echo __('EMAIL');?> <span class="astric">*</span> :
	       <?php echo $this->Form->input('User.email', array('maxlength'=>'150','class'=>'text-fields','label'=>false)); ?><div id="userError" class="astric"></div>
	</li>
	       
	       <li id="userPassword">
	      <?php echo __('PASSWORD');?> <span class="astric">*</span> :
	       <?php echo $this->Form->input('User.password', array('maxlength'=>'150','class'=>'text-fields','label'=>false)); ?> <div id="passError" class="astric"></div>
	</li>
	       <li><span class="blue-btn">
	       <?php echo $this->Form->submit(__('SIGN_IN',true), array('action'=>'','class'=>''));?>
		 </span> </li>
</ul>
	     <?php echo $this->Form->end();
	}
echo $this->Html->script('objects/Users/Users');
?>